<!-- /* Description for file.
 * 已删除客户
 * @copyright     Copyright 2008-2010, PHInfo Services Inc. (http://www.phinfoservices.com)
 * @package       ues
 * @subpackage    ues/app/views/companymanages
 * @since         ues
 * @version       V0.0.1
 * @modifiedby    张海杰2011年0625
 * @lastmodified  张海杰2011年0625
 */
 -->



<?php
echo $html->css ( 'style' );
echo $html->css ( 'tab' );
echo $javascript->link ( 'jquery' );

//print_r($customertypes);
?>
<script type="text/javascript">
	function getDelStr() {
		var delArr = $("#FeepaystyleDeleteSomeForm :checkbox:checked");
		var str = "";
		if(delArr.length==0)
		{
			alert("请选择您要删除的项");
			return;
		}
		for(var i=0;i<delArr.length;i++) {
			var del = delArr[i].value;
			str += del;
			str += "/";
		}
		//window.alert(str);
		$("#delStr").val(str);
		//window.alert($("#delStr").val());
		$("#FeepaystyleDeleteSomeForm").submit();
	}
</script>

<?php echo $form->create('Companymanage',array('action'=>'restore','type'=> 'post'));?>
<?php echo $form->hidden('delStr',array('name'=>'id','id'=>'delStr'));?>
<!-- 当前位置-->
<div id="tabmenubar">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
	<tr>
		<td class="tabmenubarcontent"><?php echo __("YourPosition");echo "："; //echo __($nowPosition)?></td>
		<td></td>
		<td></td>

	</tr>
</table>
</div>
<!-- 当前位置-->
<div class="tabflex">
<div class="actions"  id="notices-actions">

	<ul>
		<li >
			<a><?php echo $html->image('reset.gif', array('alt' =>  __('reset', true),'border'=>'0','onclick'=>'getDelStr()'));?></a>
				<!--  __('delete', true) 删除、提示 -->
		</li>

	</ul>
</div>

<!-- 客户类型列表 -->
<div id="nav1" style="width:97%">
<table width="100%" cellpadding="0" cellspacing="0" class="tab1">
	<tr>
		<th width="40px"><?php echo __('Selected');?></th>
		<th><?php echo __('Companymanagename'); ?></th>
			<th><?php echo 	__('Companymanagetel'); ?></th>
			<th><?php echo 	__('Companymanagecreater'); ?></th>
			<th><?php echo 	__('Companymanagecreated'); ?></th>
			<th><?php echo 	__('Companylinkman'); ?></th>
			<th><?php echo 	__('Companylinkposition'); ?></th>
			<th><?php echo 	__('Companylinktel'); ?></th>
			<th><?php echo 	__('Companylinkphone'); ?></th>
			<th><?php echo 	__('Companystate'); ?></th>
	</tr>
	<!-- Here's where we loop through our $Notes array, printing out post info --> 
	
	<?php 
	$i = 0;
	foreach ($theDel as $thedel): 
	$i++;	
	?>
		<tr class=normal onmouseover='this.className= "over " '
			onmouseup='this.className= "over " '
			onmouseout='this.className= "normal " '>
			<td>
<!-- 批量删除选择 -->				
				<?php echo $form->checkbox($thedel['Companymanage']['id'], array('value' => $thedel['Companymanage']['id']));?>
			</td>
			<td><?php echo $thedel['Companymanage']['name']; ?></td>
			<td><?php echo $thedel['Companymanage']['tel']; ?></td>
			<td><?php echo $thedel['Companymanage']['creater']; ?></td>
			<td><?php echo $thedel['Companymanage']['created']; ?></td>
			<td><?php echo $thedel['Linkman']['linkman']; ?></td>
			<td><?php echo $thedel['Linkman']['position']; ?></td>
			<td><?php echo $thedel['Linkman']['tel']; ?></td>
			<td><?php echo $thedel['Linkman']['mobilePhone']; ?></td>
			<td><?php echo $thedel['Companymanage']['name']; ?></td>
			
		</tr> 
	<?php endforeach; ?>
</table>
</div>
</div>
<!-- 付费方式列表 -->

<?php echo $form->end();?>




